package com.ir;

import com.sysdep.CodeGenerator;
import com.asm.Label;

public class LabelStmt extends Stmt {
    Label label;

    public LabelStmt(Label label) {
        this.label = label;
    }

    public Label getLabel() {
        return label;
    }

    public void accept(CodeGenerator cg) {
        cg.visit(this);
    }

    @Override
    public String getString() {
        return "Label-" + label.toString();
    }
}
